﻿<%@ Page Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="updCompany.aspx.cs" Inherits="admin_updCompany" Title="Quản trị - Cập nhật thông tin công ty" ValidateRequest="false" %>
<%@ Register TagPrefix="editor" Assembly="WYSIWYGEditor" namespace="InnovaStudio"%>

<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
<table border="0" cellpadding="5" cellspacing="0" style="border-right: #c0bcb0 1px solid;
        border-top: #c0bcb0 1px solid; border-left: #c0bcb0 1px solid; width: 100%; border-bottom: #c0bcb0 1px solid">
        <tr>
            <td class="Verdana10Black" style="width: 100%; border-bottom: #c0bcb0 1px solid;
                height: 18px; background-color: #e3dfd4">
                <strong>Cập nhật thông tin công ty</strong></td>
        </tr>
        <tr>
            <td style="width: 100%;">
                <table border="0" cellpadding="5" cellspacing="0" style="width: 90%" align="center">
                    <tr>
                        <td colspan="2" style="height: 20px">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style="height: 20px; width: 101px;">
                            Tên công ty:</td>
                        <td style="height: 20px">
                            <asp:TextBox ID="txtCompany" runat="server" CssClass="Verdana8Black" Width="200px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCompany"
                                ErrorMessage="Tên công ty không được rỗng"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td style="height: 20px; width: 101px;">
                            Email admin:</td>
                        <td style="height: 20px">
                            <asp:TextBox ID="txtEmail" runat="server" CssClass="Verdana8Black" Width="200px"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator
                                ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEmail" Display="Dynamic"
                                ErrorMessage="Email không được rỗng"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                                ErrorMessage="Email không hợp lệ" ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
                    </tr>
                    <tr>
                        <td style="height: 20px; width: 101px;">
                            Địa chỉ:</td>
                        <td style="height: 20px">
                            <asp:TextBox ID="txtAddress" runat="server" CssClass="Verdana8Black" Width="200px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Địa chỉ không được rỗng" ControlToValidate="txtAddress"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td style="height: 20px; width: 101px;">
                            Điện thoại:</td>
                        <td style="height: 20px">
                            <asp:TextBox ID="txtPhone" runat="server" CssClass="Verdana8Black" Width="200px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Điện thoại không được rỗng" ControlToValidate="txtPhone"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td style="height: 20px; width: 101px;" valign="top">
                            Giới thiệu:</td>
                        <td>
                            &nbsp;
                            </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <editor:wysiwygeditor Runat="server" scriptPath="../jsScript/scripts/" ID="oEdit"
                                EditorWidth="100%"
                                EditorHeight="300"
                            /> 
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 101px">
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center">
                            <asp:Button ID="btnUpdate" runat="server" CssClass="button" Text="Cập nhật" OnClick="btnUpdate_Click" /></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>

